Optimal. Leaf size=160 \[ \frac{3 \sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{\sqrt{\frac{\pi }{3}} e^{-3 a} \text{Erf}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}+\frac{3 \sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{\sqrt{\frac{\pi }{3}} e^{3 a} \text{Erfi}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}-\frac{3 x \cosh \left (a+b x^2\right )}{8 b}+\frac{x \cosh \left (3 a+3 b x^2\right )}{24 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.138398, antiderivative size = 160, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {5340, 5324, 5299, 2204, 2205} \[ \frac{3 \sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{\sqrt{\frac{\pi }{3}} e^{-3 a} \text{Erf}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}+\frac{3 \sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{\sqrt{\frac{\pi }{3}} e^{3 a} \text{Erfi}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}-\frac{3 x \cosh \left (a+b x^2\right )}{8 b}+\frac{x \cosh \left (3 a+3 b x^2\right )}{24 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5340
Rule 5324
Rule 5299
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int x^2 \sinh ^3\left (a+b x^2\right ) \, dx &=\int \left (-\frac{3}{4} x^2 \sinh \left (a+b x^2\right )+\frac{1}{4} x^2 \sinh \left (3 a+3 b x^2\right )\right ) \, dx\\ &=\frac{1}{4} \int x^2 \sinh \left (3 a+3 b x^2\right ) \, dx-\frac{3}{4} \int x^2 \sinh \left (a+b x^2\right ) \, dx\\ &=-\frac{3 x \cosh \left (a+b x^2\right )}{8 b}+\frac{x \cosh \left (3 a+3 b x^2\right )}{24 b}-\frac{\int \cosh \left (3 a+3 b x^2\right ) \, dx}{24 b}+\frac{3 \int \cosh \left (a+b x^2\right ) \, dx}{8 b}\\ &=-\frac{3 x \cosh \left (a+b x^2\right )}{8 b}+\frac{x \cosh \left (3 a+3 b x^2\right )}{24 b}-\frac{\int e^{-3 a-3 b x^2} \, dx}{48 b}-\frac{\int e^{3 a+3 b x^2} \, dx}{48 b}+\frac{3 \int e^{-a-b x^2} \, dx}{16 b}+\frac{3 \int e^{a+b x^2} \, dx}{16 b}\\ &=-\frac{3 x \cosh \left (a+b x^2\right )}{8 b}+\frac{x \cosh \left (3 a+3 b x^2\right )}{24 b}+\frac{3 e^{-a} \sqrt{\pi } \text{erf}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{e^{-3 a} \sqrt{\frac{\pi }{3}} \text{erf}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}+\frac{3 e^a \sqrt{\pi } \text{erfi}\left (\sqrt{b} x\right )}{32 b^{3/2}}-\frac{e^{3 a} \sqrt{\frac{\pi }{3}} \text{erfi}\left (\sqrt{3} \sqrt{b} x\right )}{96 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.305033, size = 184, normalized size = 1.15 \[ \frac{27 \sqrt{\pi } (\cosh (a)-\sinh (a)) \text{Erf}\left (\sqrt{b} x\right )+\sqrt{3 \pi } (\sinh (3 a)-\cosh (3 a)) \text{Erf}\left (\sqrt{3} \sqrt{b} x\right )+27 \sqrt{\pi } \sinh (a) \text{Erfi}\left (\sqrt{b} x\right )-\sqrt{3 \pi } \sinh (3 a) \text{Erfi}\left (\sqrt{3} \sqrt{b} x\right )+27 \sqrt{\pi } \cosh (a) \text{Erfi}\left (\sqrt{b} x\right )-\sqrt{3 \pi } \cosh (3 a) \text{Erfi}\left (\sqrt{3} \sqrt{b} x\right )-108 \sqrt{b} x \cosh \left (a+b x^2\right )+12 \sqrt{b} x \cosh \left (3 \left (a+b x^2\right )\right )}{288 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.07, size = 157, normalized size = 1. \begin{align*}{\frac{{{\rm e}^{-3\,a}}x{{\rm e}^{-3\,b{x}^{2}}}}{48\,b}}-{\frac{{{\rm e}^{-3\,a}}\sqrt{\pi }\sqrt{3}}{288}{\it Erf} \left ( x\sqrt{3}\sqrt{b} \right ){b}^{-{\frac{3}{2}}}}-{\frac{3\,{{\rm e}^{-a}}x{{\rm e}^{-b{x}^{2}}}}{16\,b}}+{\frac{3\,{{\rm e}^{-a}}\sqrt{\pi }}{32}{\it Erf} \left ( x\sqrt{b} \right ){b}^{-{\frac{3}{2}}}}+{\frac{{{\rm e}^{3\,a}}x{{\rm e}^{3\,b{x}^{2}}}}{48\,b}}-{\frac{{{\rm e}^{3\,a}}\sqrt{\pi }}{96\,b}{\it Erf} \left ( \sqrt{-3\,b}x \right ){\frac{1}{\sqrt{-3\,b}}}}-{\frac{3\,{{\rm e}^{a}}{{\rm e}^{b{x}^{2}}}x}{16\,b}}+{\frac{3\,{{\rm e}^{a}}\sqrt{\pi }}{32\,b}{\it Erf} \left ( \sqrt{-b}x \right ){\frac{1}{\sqrt{-b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.82847, size = 219, normalized size = 1.37 \begin{align*} -\frac{\sqrt{3} \sqrt{\pi } \operatorname{erf}\left (\sqrt{3} \sqrt{-b} x\right ) e^{\left (3 \, a\right )}}{288 \, \sqrt{-b} b} - \frac{\sqrt{3} \sqrt{\pi } \operatorname{erf}\left (\sqrt{3} \sqrt{b} x\right ) e^{\left (-3 \, a\right )}}{288 \, b^{\frac{3}{2}}} + \frac{x e^{\left (3 \, b x^{2} + 3 \, a\right )}}{48 \, b} - \frac{3 \, x e^{\left (b x^{2} + a\right )}}{16 \, b} - \frac{3 \, x e^{\left (-b x^{2} - a\right )}}{16 \, b} + \frac{x e^{\left (-3 \, b x^{2} - 3 \, a\right )}}{48 \, b} + \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (\sqrt{b} x\right ) e^{\left (-a\right )}}{32 \, b^{\frac{3}{2}}} + \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (\sqrt{-b} x\right ) e^{a}}{32 \, \sqrt{-b} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.89479, size = 2429, normalized size = 15.18 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \sinh ^{3}{\left (a + b x^{2} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23862, size = 224, normalized size = 1.4 \begin{align*} \frac{\sqrt{3} \sqrt{\pi } \operatorname{erf}\left (-\sqrt{3} \sqrt{-b} x\right ) e^{\left (3 \, a\right )}}{288 \, \sqrt{-b} b} + \frac{\sqrt{3} \sqrt{\pi } \operatorname{erf}\left (-\sqrt{3} \sqrt{b} x\right ) e^{\left (-3 \, a\right )}}{288 \, b^{\frac{3}{2}}} + \frac{x e^{\left (3 \, b x^{2} + 3 \, a\right )}}{48 \, b} - \frac{3 \, x e^{\left (b x^{2} + a\right )}}{16 \, b} - \frac{3 \, x e^{\left (-b x^{2} - a\right )}}{16 \, b} + \frac{x e^{\left (-3 \, b x^{2} - 3 \, a\right )}}{48 \, b} - \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (-\sqrt{b} x\right ) e^{\left (-a\right )}}{32 \, b^{\frac{3}{2}}} - \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (-\sqrt{-b} x\right ) e^{a}}{32 \, \sqrt{-b} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]